//
//  BaseViewController.h
//  BaseProject
//
//  Created by 喻飞 on 15/5/10.
//  Copyright (c) 2015年 yuf. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LQRequestApi.h"
#import "CWHUDTips.h"
#import "AppDelegate.h"

#import <AMapNaviKit/MAMapKit.h>
#import <AMapNaviKit/AMapNaviKit.h>

#import "iflyMSC/IFlySpeechError.h"
#import "iflyMSC/IFlySpeechSynthesizer.h"
#import "iflyMSC/IFlySpeechSynthesizerDelegate.h"
#import <AudioToolbox/AudioToolbox.h>
#import "SharedMapView.h"
@interface BaseViewController : UIViewController<LQRequestApiDelegate,MAMapViewDelegate,AMapNaviManagerDelegate,IFlySpeechSynthesizerDelegate,AMapNaviViewControllerDelegate>{
    LQRequestApi       *shareApi;
     BOOL _allowSwipeGesture; 
}
@property (nonatomic ,strong) LQRequestApi       *shareApi;
@property (nonatomic, strong) AppDelegate        *delegate;
@property (nonatomic, weak) MAMapView *mapView;
@property (nonatomic, strong) AMapNaviManager *naviManager;
@property (nonatomic, strong) IFlySpeechSynthesizer *iFlySpeechSynthesizer;
@property (nonatomic, strong) AMapNaviViewController *naviViewController;
@property (nonatomic, strong) NSString *userLatitude;
@property (nonatomic, strong) NSString *userLongitude;
//配置导航栏与状态栏
- (void)configurationNavigationAndTabbar;
-(void)backBtn;
#pragma mark  调整自适应布局
- (void) adaptiveViewLayout:(UIView *)viewLayout;
//返回
-(void) back:(id) sender;
#pragma mark  显示加载进度
#pragma mark - Actions
- (void)showWaitDialogForWait:(NSString *)str;

- (void)showWaitDialogForNetWork;

- (void)showWaitDialog:(NSString*)title state:(NSString*)state;

- (void)dismissWaitDialog;

-(void)showWaitDialogForNetWorkDismissBySelf;

- (void)hideKeyBoard;

#pragma mark - Initialized
- (void)initMapView;
#pragma mark - Utility

- (void)clearMapView;
- (void)initNaviManager;
- (void)initIFlySpeech;
- (void)initNaviViewController;
@end
